<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
</style>
<body>
    <p id = "gg">好好学习，天天向上</p>
    <h1>你好,jquery</h1>
</body>
<script src="js/jquery-3.7.1.js" type="text/javascript" charset="utf-8"></script>
<script>
    // 原始方法
    // var pNode = document.getElementById('gg');
    // pNode.style.color = 'red';

    //jquery方法
    var pNode = $("#gg");
    $(pNode).css('color','red').css('background','#0f0')

    $(document).ready(function(){
        alert('jq,我来了');
    })
    
</script>
</html>